using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Article_Content - 最近新鲜事 - 对象继承类
    /// </summary>
    [MetadataType(typeof(ArticleContentValidaTion))]
    public class ArticleContent : IArticleContent<ArticleContent>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class ArticleContentValidaTion
       {

     

        /// <summary>
        /// 流水ID
        /// </summary>
        [Display(Name ="流水ID")]
        [Required]
        [StringLength(36)]
        public String ContentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 发布人ID
        /// </summary>
        [Display(Name ="发布人ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 关联ID
        /// </summary>
        [Display(Name ="关联ID")]
        [StringLength(36)]
        public String ModelsId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 模版类别
        /// </summary>
        [Display(Name ="模版类别")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.ArticleContent.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 关键字
        /// </summary>
        [Display(Name ="关键字")]
        [StringLength(100)]
        public String KeyWords
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 摘要
        /// </summary>
        [Display(Name ="摘要")]
        [StringLength(500)]
        public String Summary
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 点击率
        /// </summary>
        [Display(Name ="点击率")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Click
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否开启评论
        /// </summary>
        [Display(Name ="是否开启评论")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsComment
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否包含图片
        /// </summary>
        [Display(Name ="是否包含图片")]
        [Required]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsImage
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 发布时间
        /// </summary>
        [Display(Name ="发布时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 评论数量
        /// </summary>
        [Display(Name ="评论数量")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int CommentNum
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name ="修改时间")]

        public DateTime EditTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否隐藏
        /// </summary>
        [Display(Name ="是否隐藏")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsClose
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
